package com.shop.service;

import com.shop.mapper.ArticleMapper;
import com.shop.pojo.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("articleServiceImp")
public class ArticleServiceImp implements ArticleService {

    @Autowired
    ArticleMapper articleMapper;

    @Override
    public int addSelective(Article article) {
        return articleMapper.insertSelective(article);
    }

    @Override
    public List<Article> findAllArticle() {
        return articleMapper.selectAllArticle();
    }
}
